/*
 * Trail.h
 *
 *  Created on: 2012/07/12
 *      Author: weihe
 */

#ifndef TRAIL_H_
#define TRAIL_H_

#include <iostream>
#include "Drawable.h"
#include "geom.h"
#include "glex.h"
#include "utility.h"

using namespace std;

namespace object {

class Trail: public object::Drawable {
	Vector4f position;
	float alpha;
public:
	Trail(Vector4f position) :
			alpha(1.0f)
	{
		this->position = position
				+ Vector4f(nextFloat() * 0.06 - 0.03, nextFloat() * 0.06 - 0.03,
						nextFloat() * 0.06 - 0.03);
	}

	virtual ~Trail();

	bool update(float dt);

	void draw();
};

} /* namespace object */
#endif /* TRAIL_H_ */
